package cn.hwadee.muying.mapper;

import cn.hwadee.muying.entity.PromotionLog;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import cn.hwadee.muying.entity.User;
import cn.hwadee.muying.commons.page.MyPage;

import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 晋升记录 Mapper 接口
 * </p>
 *
 * @author Mankind
 * @since 2018-08-06
 */
@Mapper
@Component(value = "promotionLogMapper")
public interface PromotionLogMapper extends BaseMapper<PromotionLog> {

    List<PromotionLog> list(@Param("page") MyPage<PromotionLog> page, @Param("cUser") User cUser,@Param("userId") Long userId,@Param("preWorkerLevelId") Long preWorkerLevelId,@Param("curWorkerLevelId") Long curWorkerLevelId,@Param("keyword") String keyword) throws Exception;

    Date resentUpgrade(@Param("id") Long id, @Param("orgId") Long orgId);

}
